package com.yx.china.controller;

import com.yx.china.domain.Order;
import com.yx.china.project.entities.ResponseResult;

import com.yx.china.service.OrderService;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
@RestController
public class OrderController {

    @Resource
    private OrderService orderService;

    public ResponseResult create(Order order){
        orderService.create(order);
        return new ResponseResult(200,"订单创建成功");
    }
}